package service

import (
	"rongyy/src/middlewares"
	"rongyy/src/models"
)

type OccupationService struct {
}

// 公卫，7院卡管中心用， fetch去调用https:// + ip的接口，要报错，直接报dnsname非法，不晓得扎个解决。所以从这里转一哈，艹

func (ps *OccupationService) Query() ([]models.OccupationModel, int64, error) {
	data, total, err := (&models.OccupationModel{}).Query()
	if err != nil {
		middlewares.Logger.Println("OccupationService Query failed ", err)
		return nil, 0, err
	}
	return data, total, nil
}
